package feed;

public class Feeder {
	Lion l=new Lion();
	Monkey m=new Monkey();
	Pigeon p=new Pigeon();
	private String name;
	public Feeder(){
		
	}
	public Lion getL() {
		return l;
	}
	public void setL(Lion l) {
		this.l = l;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Feeder(String name){
		this.name=name;
	}
	public void feedLion(String name,Lion l){
		l.eat();
		System.out.println("Lion:"+l.getLname()+" by feeder:"+this.name);
	}
	public void feedMonkey(String name,Monkey m){
		m.eat();
		System.out.println("Monkey"+m.getName()+" by feeder:"+this.name);
	}
	public void feedPigeon(String name,Pigeon p){
		p.eat();
		System.out.println("Pigeon"+p.getName()+" by feeder:"+this.name);
	}
}
